home *** CD-ROM | disk | FTP | other *** search
- on PlayBackTrack
- global gBackgroundSound, gBackgroundVolume
- set the volume of sound 2 to gBackgroundVolume
- if soundBusy(2) = 0 then
- sound playFile 2, getpn() & "Sounds:Bckgrd" & gBackgroundSound & ".aif"
- end if
- end
-
- on StudioSoundPopUp WhichSprite
- set LeftLoc to the locH of sprite WhichSprite + (the width of sprite WhichSprite / 2) - 47
- set TopLoc to the locV of sprite WhichSprite + (the height of sprite WhichSprite / 2) - 59
- set RightLoc to the locH of sprite WhichSprite + (the width of sprite WhichSprite / 2) + 47
- set BottomLoc to the locV of sprite WhichSprite + (the height of sprite WhichSprite / 2) + 61
- set the rect of window "Stdsound.dir" to rect(LeftLoc, TopLoc, RightLoc, BottomLoc)
- set LeftOrigin to the stageLeft
- set TopOrigin to the stageTop
- set the rect of window "Stdsound.dir" to rect(LeftOrigin + LeftLoc, TopOrigin + TopLoc, LeftOrigin + RightLoc, TopOrigin + BottomLoc)
- set the windowType of window "Stdsound.dir" to 2
- open(window "Stdsound.dir")
- end
-
- on PlayMovie whichChannel, ReturnTo
- if the movieTime of sprite whichChannel > 0 then
- sound fadeOut 1, 120
- set the volume of sound 1 to 0
- sound fadeOut 2, 120
- set the volume of sound 2 to 0
- end if
- if the movieTime of sprite whichChannel = the stopTime of sprite whichChannel then
- go(ReturnTo)
- end if
- end
-
- on SmallPreload
- global gMemorySize
- if the preLoad of cast 15 = 0 then
- preLoadCast(1, 15)
- end if
- preLoad("Let it Flow", label("Coming From") + 1)
- end
-
- on BigPreload
- global gMemorySize
- if the preLoad of cast 30 = 0 then
- preLoadCast(1, 30)
- end if
- preLoad("Let it Flow", label("Coming From") + 1)
- end
-
- on GoStudioVideos WhichTrack
- global gWhereFrom
- set gWhereFrom to the frameLabel
- repeat with i = 29 to 35
- set the visible of sprite i to 0
- end repeat
- sound stop 2
- go(WhichTrack)
- end
-
- on OpenFillScreen
- global gBackDrop
- openXLib(getpn() & "RearWindow.XObj")
- set red to 1500
- set green to 1500
- set Blue to 1500
- if objectp(gBackDrop) then
- gBackDrop(mdispose)
- end if
- set gBackDrop to RearWindow(mnew, "M")
- set resultCode to gBackDrop(mRGBColorToWindow, red, green, Blue)
- end
-
- on closeFillScreen
- global gBackDrop
- if objectp(gBackDrop) then
- gBackDrop(mdispose)
- end if
- end
-
- on undoLoop
- global gLastLoop, gWhichSound3, gWhichSound4, gWhichSound5, gWhichSound6, gWhichSound7, gWhichSound8, gWhichSound9, gWhichSound10
- if gLastLoop > 0 then
- set the foreColor of sprite (gLastLoop + 4) to 255
- set gWhichSound3 to EMPTY
- set gWhichSound4 to EMPTY
- set gWhichSound5 to EMPTY
- set gWhichSound6 to EMPTY
- set gWhichSound7 to EMPTY
- set gWhichSound8 to EMPTY
- set gWhichSound9 to EMPTY
- set gWhichSound10 to EMPTY
- sound stop gLastLoop
- set gLastLoop to 0
- end if
- end
-